﻿@model IEnumerable<JUIDemoMVC3RC2Project.Models.SimpleModel>

@{
    ViewBag.Title = "Accordion";
}

<h2>Accordion</h2>

<h4>Default Functionality</h4>
<div id="def">
    @foreach (var item in Model)
    {
        <h3><a href="#">@item.Title</a></h3>
        <div>
            <p>
                @item.Text
            </p>
        </div>
    }
</div>

<script type="text/javascript">
    $(document).ready(function () {
        $('#def').accordion();
    });
</script>